package org.java.user.repository;

import org.java.user.api.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;


@Repository
public interface UserRepository extends JpaRepository<User,String> {

    Optional<User> findByLoginName(String loginName);

    Optional<User> findByMobilePhone(String name);

    Optional<User> findByEmail(String name);
}
